if ((abs(self.x - var_going_to_x) > 10) || (abs(self.y - var_going_to_y) > 10)) {
    move_towards_point(var_going_to_x, var_going_to_y, 0) //just to get direction
    direction = round(direction/45) * 45 // convert direction to 8 point
    move_towards_point(5 * cos(degtorad(direction)) + self.x, -5 * sin(degtorad(direction))+ self.y, var_character_speed)//actually move
}
else {
    move_towards_point(self.x,self.y, 0)
}
